import axios from "@/common/axios";
import { API_URL } from "@/common/constants";

export const queryLeadCheckList = async (json) => {
  let { data } = await axios.post(API_URL + "rLeadCheckApi/queryLeadCheckList", json);
  return data;
};



export const updateLeadCheck = async (json) => {
  let { data } = await axios.post(API_URL + "rLeadCheckApi/updateLeadCheck", json);
  return data;
};


export const addLeadCheck = async (json) => {
  let { data } = await axios.post(API_URL + "rLeadCheckApi/addLeadCheck", json);
  return data;
};



export const delLeadCheck = async (json) => {
  let { data } = await axios.post(API_URL + "rLeadCheckApi/delLeadCheck", json);
  return data;
};


export const importExcel = async (formData) => {
  let { data } = await axios.post(API_URL + "rLeadCheckApi/importExcel", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}